package com.foreknow.demo03;

import java.util.Scanner;

public class LianxiDemo {
    public static void main(String[] args) {
        boolean panduan = true;
        Scanner input = new Scanner(System.in);
        System.out.println("请输入年份：");
        int year = input.nextInt();
        int runnian = year%4;
        if (runnian==0){
            panduan = true;
            System.out.println(year + "是一个闰年");
        }else{
            panduan = false;
            System.out.println(year + "不是一个闰年");
        }
    }
}
